package ModelImplementation

import "time"

type SalesReceipt struct {
	itsSalesDate time.Time
	itsAmount    float64
}

func (sr *SalesReceipt) GetAmount() float64 {
	return sr.itsAmount
}

func (sr *SalesReceipt) GetSaleDate() time.Time {
	return sr.itsSalesDate
}

func NewSalesReceipt(t time.Time, amount float64) SalesReceipt {
	return SalesReceipt{itsSalesDate: t, itsAmount: amount}
}
